<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%= session.getId()%>

<%
    Cookie cookie=new Cookie("JSESSIONID",session.getId());
    cookie.setMaxAge(20);
    response.addCookie(cookie);
%>
</body>
</html>
